package com.atguigu.exam.service;

import com.atguigu.exam.entity.ExamRecord;
import com.atguigu.exam.vo.SubmitAnswerVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 考试服务接口
 */
public interface ExamService extends IService<ExamRecord> {
    /**
     * 提交答案 - 学生提交考试答案
     * @param examRecordId 考试记录ID
     * @param answers      答案列表
     */
    boolean submitAnswers(Integer examRecordId, List<SubmitAnswerVo> answers);
    /**
     * 根据ID获取考试记录详情 - 查询具体考试结果
     */
    ExamRecord getExamRecordById(Integer id);
}
 